<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/default.css" />
		<script src="js/cookie.js" />
		</script>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		
		<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
		<script type="text/javascript">
			function test() {
				var element = document.getElementById("test");
				element.innerHTML = "欢迎回来：" + localStorage.lastname;
			}
		</script>
		<script>
			$(document).ready(function(){
					$("#oldago").hide();
					$(".Done").click(function(){
						$("#year").animate({
							width:'0',
						},"1500");
						$("#month").animate({
							width:'0',
						},"2000");
						$("#day").animate({
							width:'0',
						},"2500");
						$(".Done").animate({
							width:'0',
							opacity:'0',
						});
						$("#a").animate({
							left:'25%',
							top:'15%',
						});
						$("#oldago").show();
						$("#oldago").fadein();
					});
			});
			</script>
		<script>
			function get(){
						var End = Cookies.get('username');
						var Year = document.getElementById("year").value;
						Cookies.set('name',Year,{expires:36500});
						var GY = Cookies.get('name');
						var Data = new Date().getFullYear();
						//var cont = Data.getFullYear();
						document.getElementById("a").innerHTML=Cookies.get('username');
						var y = Data-Year;
						var v = 60-y;
						var z = v*365;
						console.log(y);
						console.log(v);
						console.log(z);
					}
					function jump(){
							window.location.href="jishi.html";
					}
			</script>
			<script src="js/jishi.js"></script>
		<script src="https://cdn.bootcss.com/js-cookie/2.2.0/js.cookie.js"></script>
		<script src="https://cdn.bootcss.com/js-cookie/2.1.3/js.cookie.min.js"></script>
		<script src="https://cdn.bootcss.com/vue/2.5.20/vue.js"></script>
		<script src="https://cdn.bootcss.com/vue/2.5.20/vue.min.js"></script>
		<script src="https://cdn.bootcss.com/lockr/0.8.5/lockr.js"></script>
		<script src="https://cdn.bootcss.com/lockr/0.8.5/lockr.min.js"></script>
		<script src="js/cookie.js"></script>
	</head>
	<body onload="countTime();get()">
		<div id="oldago">
			<span id="__nsg">您还有:</span><br />
			<span id="_d">00</span><br />
			<span id="_h">00</span><br />
			<span id="_m">00</span><br />
			<span id="_s">00</span><br />
			<span id="msg2">就即将老去</span><br />
		</div>
		<div id="a"></div>
		<input type="text" id="year" placeholder="你的出生年" />
		<input type="text" id="month" placeholder="你的出生月" />
		<input type="text" id="day" placeholder="你的出生日" />
		<input type="button" class="Done" value="完成" onclick="get()" onclick="jump()" />
		<div class="sbg"></div>
	</body>
</html>
